package vue.controle.sensibilite;

import javax.swing.JPanel;

import vue.controle.ControlPane;

public class SensibiliteControlPane implements ControlPane
{
	JPanel panel;
	SensibiliteModele modele;
	
	public SensibiliteControlPane()
	{
		modele = new SensibiliteModele();
		panel = new SensibiliteVue(modele);
	}

	@Override
	public JPanel getViewPane()
	{
		return panel;
	}

	@Override
	public Object getProperties()
	{
		return modele.getIntervalles();
	}

	@Override
	public String getName()
	{
		return "sensibilite";
	}

	@Override
	public void saveProperties()
	{
		modele.sauvegarderIntervalles();
	}
}
